home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 009a / isadriv.zip / ISADRIVE.DOC < prev   
Text File  |  1991-08-30  |  4KB  |  90 lines

  1. IsADrive.COM documentation.
  2.  
  3. Purpose:
  4. IsADrive will validate a drive letter for you.  It will tell you whether
  5. the specified drive exists and is ready or not.
  6.  
  7. Options:
  8.    /S      Silent Mode: no visible/audible error messages
  9.    /T      No-Title mode: suppress the copywrite message
  10.    /N      No change: verify the drive, but don't change to it.
  11.    /-      Hide a drive
  12.    /+      Un-Hide a drive
  13.    /?      Help
  14.    /P      Report on number of physical disk drives installed
  15.    /P#     Set up system to believe in # physical drives.
  16.  
  17. Usage:
  18.    ISADRIVE <letter> {options}
  19.  
  20. >  Example:  ISADRIVE F
  21.    will try to change to drive F:.  If F: is not ready or does not exist,
  22.    the change will be cancelled and you will be left on the drive you
  23.    started from.
  24.  
  25.    NOTE: this is different from DOS.  DOS would:
  26.        1 - force you to respond to "Abort, Retry, Ignore"
  27.        2 - leave you on "Current drive is no longer valid"
  28.  
  29.    Isadrive simply tells you about the problem, both on-screen and through
  30.    an errorcode, and returns to the last valid drive.
  31.  
  32. Results:
  33.    If the change was successful:
  34.        Errorlevel=0, No message to screen.
  35.  
  36.    If the drive exists but was not ready (say, a diskette drive without
  37.    a formatted disk, or an unopened Diskreet or Squish disk):
  38.       Errorlevel=1, message="That drive was not ready - change cancelled."
  39.       (This is the only error message accompanied by a beep.)
  40.  
  41.    If the drive does not exist, but the lastdrive option is such that it
  42.    is availible for allocation (i.e. a LASTDRIVE= statement in CONFIG.SYS
  43.    or it is at or below E: on a system with few drives):
  44.       Errorlevel=2, message="Change failed - Invalid drive inside
  45.       LASTDRIVE range."
  46.  
  47.    If the drive does not exist and is outside of the lastdrive range:
  48.       Errorlevel=2, message="That drive letter is out of range."
  49.  
  50. >  ISADRIVE E /-
  51.    will hide drive E:.  Trying to change to drive E: after this command
  52.    will result in the "Invalid Drive Specification" message.  This can
  53.    be returned to normal with the command "ISADRIVE E /+".
  54.  
  55. >  ISADRIVE /P0 
  56.    sets the system to zero physical drives.  (NOTE: SCSI systems have
  57.    no physical drives anyhow - just devices.)
  58.  
  59. >  ISADRIVE /P1
  60.    turns off hard disk #2.
  61.  
  62. IMPORTANT NOTES:
  63.    The /S and /T will work with both the drive checking and the drive
  64.    toggling commands.
  65.  
  66.    You can turn on any drive with-in your LASTDRIVE specification, but
  67.    if it is not REALLY a drive, you will lock up when you try to change
  68.    to it.
  69.  
  70.    Sometimes some operating systems will reset the number of physical
  71.    disk drives after ISADRIVE has.  ISADRIVE can not control the
  72.    operating systems, and has no way of preventing this.  It does set
  73.    it properly, but may not be able to keep it that way.
  74.  
  75.    If you have set a physical drive off, but it still looks like it is
  76.    on, the reason may be a disk cache.  Try loading a file you have not
  77.    touched in a while or reading a directory you had not yet accessed, or
  78.    do a CHKDSK.
  79.  
  80.    There is a bug in ISADRIVE -  if you are changing to a drive while
  81.    using the /P parameter in any of its permutations, if the drive you
  82.    are changing to is not ready, you will not recieve an error.  The
  83.    error level will be set, and you will be left on the start drive, 
  84.    but no error will be reported to the screen.
  85.  
  86.  
  87.    Toggling a drive does not change to or from that drive.  The two are
  88.    considered separate operations.
  89.  
  90.